package cn.anline.sb.demo.controller;

import org.springframework.http.server.ServletServerHttpRequest;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("test")
public class TestController {

    @PostMapping("queryName")
    public String queryName(String name, HttpServletRequest request) {
        return "你好，" + name + "取值"+request.getHeader("Ann-Token");
    }
}
